package hd.util.http;

/**
 * Http请求接口
 * <p/>
 * Created by Haidy on 15/2/3.
 */
public abstract class HttpRequestListener {

    /**
     * 开始请求
     */
    public void startRequest() {
    }

    /**
     * 请求成功
     *
     * @param response res
     */
    public abstract void success(HttpResponse response);

    /**
     * 请求失败
     *
     * @param response res
     */
    public abstract void failure(HttpResponse response);

    /**
     * 请求结束
     */
    public void end() {
    }
}
